package com.zhuangxiaoyan.spring.srcode.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

/**
 * @Classname AService
 * @Description TODO
 * @Date 2022/5/8 15:06
 * @Created by xjl
 */
@Service
// @Scope("prototype")// 多利模式
public class AService {

    @Autowired
    private BService bService;

    public BService getbService() {
        return bService;
    }

    public void setbService(BService bService) {
        this.bService = bService;
    }

    public AService(){
        System.out.println("设置为无参数构造函数……");
    }
    // 为A 比B 先设置呢？

}
